package cn.wolfcode.wolf2w.queryObject;

import cn.wolfcode.wolf2w.vo.TravelCondition;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQueryObject extends QueryObject {
    private int state = 4;
    private String id;
    private String destId;

    private int dayType = -1; // 旅游天数
    private int perExpendType = -1; // 人均消费
    //private int goDayType = -1;

    private int orderType = -1;
    public static final int ORDER_NEW = 1;  // 按最新的排序
    public static final int ORDER_HOT = 2;  // 按最火的排序

    public TravelCondition getDayType(){
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition getPerExpendType(){
        return TravelCondition.PER_EXPEND_MAP.get(perExpendType);
    }

    /*public TravelCondition getGoDayType(){
        return TravelCondition.GODAY_MAP.get(goDayType);
    }*/
}
